import threading

emptyDict = {0: ['1','11'], 1: ['2','22'], 2: ['3','33']}
# emptyDict = {}
# arr = ['11', '22', '33']
# len = len(arr)
# for i,a in enumerate(arr):
#     emptyDict[i] = a

for key,value in emptyDict.items():
    print(key,value)
print(emptyDict)

# 异步保存在字典中
class MultiThread(threading.Thread):
    def __init__(self, dict, index, chap, content):
        threading.Thread.__init__(self)
        self.index = index
        self.dict = dict
        self.content = content

    def run(self):
        dict[self.index] = [self.chap,self.content]